package com.ctshk.rpc.user.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @BelongsProject: ctshk-cloud
 * @BelongsPackage: com.ctshk.rpc.starvip.req.transaction
 * @Author: hef
 * @CreateTime: 2021-04-13 20:55
 * @Description: 星赏会交易接口请求数据
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class UserStarVipTransactionReq implements Serializable {


    /**
     * 交易点数
     */
    @ApiModelProperty(value = "交易点数",required = true)
    private BigDecimal points;
    /**
     * 交易会员卡号
     */
    @ApiModelProperty(value = "交易会员卡号",required = true)
    private String ctsTXNCardNum;
    /**
     * 集团会员编号
     */
    @ApiModelProperty(value = "集团会员编号",required = true)
    private String memberId;
    /**
     * 交易日期
     */
    @ApiModelProperty(value = "交易日期",required = true)
    private LocalDateTime transactionDate;

    /**
     * 交易子类型
     * @enum StarVipTransactionSubType
     */
    @ApiModelProperty(value = "交易子类型",required = true)
    private String transactionSubType;

    /**
     * 交易类型
     * @enum StarVipTransactionType
     */
    @ApiModelProperty(value = "交易类型",required = true)
    private String transactionType;
    /**
     * 三级产品目录编码
     * 8821500000	港澳会奖旅游
     * 8821510000	港澳自由行
     * 8821520000	港澳参团游
     * 8821530000	港澳包团游
     * 8821550000	游轮
     */
    private String partNumber;
    /**
     * 交易金额
     */
    private BigDecimal amount;
    /**
     * 订单编号
     */
    private String ctsOrderNum;
    /**
     * 人民币消费金额
     */
    private BigDecimal ctsRMBAmount;
    /**
     * 交易币种
     */
    private String currencyCode;

    public UserStarVipTransactionReq(BigDecimal points, String ctsTXNCardNum, String memberId, LocalDateTime transactionDate, String transactionSubType,
                                     String transactionType, String ctsOrderNum) {
        this.points = points;
        this.ctsTXNCardNum = ctsTXNCardNum;
        this.memberId = memberId;
        this.transactionDate = transactionDate;
        this.transactionSubType = transactionSubType;
        this.transactionType = transactionType;
        this.ctsOrderNum = ctsOrderNum;
    }
}
